/**
 * RobberDuckAdapter.java is created by Zachariah at 2012-1-17 下午03:15:09
 */
package com.zack.designPattern.adapter.object;

/**
 * @author zachariah zzcfrog@gmail.com
 *
 */
public class RobberDuckAdapter implements IDuck {

	private IRobberDuck rDuck;
	
	public RobberDuckAdapter(IRobberDuck rDuck){
		this.rDuck = rDuck;
	}
	
	@Override
	public void gaga() {
		rDuck.squeak();
		
	}

	@Override
	public void swim() {
		rDuck.flow();	
	}

}
